package com.huan.controller;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huan.consumer.IHelloClient;

/**
 * 
 * @author huan
 *
 */
@RestController
public class HelloController {
	
	@Resource
	private IHelloClient iHelloClient;
	
	@Value("${word}")
	private String word;
	
	@GetMapping("/hello")
	public String helloworld() {
		return iHelloClient.helloWorld();
	}
	
	@GetMapping("/word")
	public String word() {
		return word;
	}

}
